#include "game.h"
#include "lib.h"

int main(int argc, char* argv[]){
   initscr();
   raw();  
   keypad(stdscr, TRUE);
   noecho();
   curs_set(0);
   
   Game* game = new Game();
   
   refresh();
   clear();
   
   mvprintw(10, 30, "1 - One Player");
   mvprintw(11, 30, "2 - Two Players");
   
   int z = getch();
   
   if (z == 49) {
      Snake* Snake1 = new Snake(false);
      game->setPlayerNumber(1);
      game->gameStart(Snake1, Snake1);
   }
   else if (z == 50) {
      Snake* Snake1 = new Snake(false);
      Snake* Snake2 = new Snake(true);
      game->setPlayerNumber(2);
      game->gameStart(Snake1, Snake2);
   }
   else
      game->exitGame();
   
   return 0;
}
